from django.shortcuts import render_to_response
from django.template.context import RequestContext

from base.decorators import render_to, JsonResponse, ajax_request

from blog.models import BlogPost
import logging

@render_to('base/index.html')
def index(request):
    logging.info('test')
    blogposts = BlogPost.all().order('-timestamp')
    return {
        'blogposts': blogposts,
        }
    return {'world': 'world'}

@render_to('base/index.html')
def about_me(request):
    return {'world': 'world'}



